<template>
  <div class="loginBox">
    <div class="center">
      <div class="tit">系统登录</div>

      <div class="account">
        <el-form :model="formInline" class="demo-form-inline">
          <el-form-item>
            <el-input
              v-model="formInline.user"
              placeholder="账号"
              prefix-icon="el-icon-user-solid"
            ></el-input>
          </el-form-item>
          <el-form-item>
            <el-input
              v-model="formInline.user"
              placeholder="密码"
              prefix-icon="el-icon-lock"
            ></el-input>
          </el-form-item>
          <el-form-item>
            <div class="verificationCode">
              <img src="" alt="" />
              <el-input
                v-model="formInline.user"
                placeholder="验证码"
                prefix-icon="el-icon-lock"
              ></el-input>
              <el-button type="primary" size="default" class="getBtn" @click="getverificationCode">
                点击获取验证码
              </el-button>
            </div>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" class="loginBtn" @click="onSubmit">登录</el-button>
          </el-form-item>
        </el-form>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      formInline: {
        user: '',
        region: '',
      },
    };
  },
  setup(props) {
    console.log('setup');
  },
  created() {
    console.log(111);
  },
  methods: {
    onSubmit() {
      this.$router.push({
        name: 'home',
        query: {},
      });
    },
    getverificationCode(val, val1) {
      console.log(111);
    },
  },
};
</script>

<style lang="scss" scoped>
@import './index.scss';
</style>
